package com.wang.cloud.manage.domain.co;

import com.wang.cloud.common.core.enums.GenderEnum;
import com.wang.cloud.common.core.validator.CheckEnum;
import com.wang.cloud.common.swagger.annotations.SchemaEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;


/**
 * @author wy
 * @since 2024-07-16
 */
@Getter
@Setter
@Schema(description = "系统管理用户-新增参数")
public class SysUserRestPwdCo {

    @NotNull(message = "id不能为空")
    @Min(value = 1, message = "id不能小于1")
    @Schema(description = "数据ID")
    private Long id;

    @NotBlank(message = "请输入密码")
    @Pattern(regexp = "^(?=.*[0-9])(?=.*[a-z])(?=.*[A-Z]).{8,20}$", message = "密码格式不正确")
    @Schema(description = "密码")
    private String password;

}
